package cn.neusoft.luofa603.yuejian_29.adapter;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentActivity;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

import com.jude.rollviewpager.RollPagerView;

import java.util.List;

public class TrainAdapter extends FragmentPagerAdapter {

    private List<String> title;
    private List<Fragment> views;


    public TrainAdapter(FragmentManager fm, List<String> title, List<Fragment> views) {
        super(fm);
        this.title=title;
        this.views=views;
    }




    public Fragment getItem(int position) {
        return views.get(position);
    }


    public int getCount() {
        return views.size();
    }

    public CharSequence getPageTitle(int position){
        return title.get(position);
    }
}
